/**
 * Created by Dalyn on 2017/4/01.
 */
import Relay from "react-relay";

export default class saveSuggestMutation extends Relay.Mutation {
    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { saveSuggest }`;
    }

    getVariables() { 
        return {
            argsInput: {
              userName: this.props.userName,
              detail: this.props.detail,
              phone: this.props.phone
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on saveSuggestPayload {
            saveSuggest {
              value
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
              fragment on saveSuggestPayload {
                    saveSuggest {
                      value
                      }
                  }
            `]
        }];
    }

}
